Skip to content

feat(cli): add configurable padding for PNG and SVG - #160

Merged
erweixin merged 1 commit into
erweixin:mainfrom
Tao-Boy:main
Sep 17, 2026
Merged

erweixin merged 1 commit into
erweixin:mainfrom
Tao-Boy:main

Conversation

@Tao-Boy

@Tao-Boy Tao-Boy commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 16, 2026 08:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Validate padding as finite and non-negative, and add CLI regression coverage.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds configurable, DPR-scaled --padding support for PNG and SVG CLI output.

Changes:

  • Adds padding parsing and renderer integration.
  • Documents the option in English and Chinese.
File summaries
File Summary
README.zh-CN.md Documents the padding option.
README.md Documents the padding option.
crates/ratex-svg/src/bin/render_svg.rs Applies configurable SVG padding.
crates/ratex-render/src/main.rs Applies configurable PNG padding.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/ratex-render/src/main.rs
Comment thread crates/ratex-svg/src/bin/render_svg.rs
Comment thread crates/ratex-render/src/main.rs
Comment thread crates/ratex-svg/src/bin/render_svg.rs
@erweixin
erweixin merged commit 7babccc into erweixin:main Sep 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants